package com.xyy.kingdeejdy.pojo.erp.customer;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class JdCustomerInfo {

    @JsonProperty("number")
    private String number;
    @JsonProperty("isDeleted")
    private Boolean isDeleted;
    @JsonProperty("level")
    private Integer level;
    @JsonProperty("createTime")
    private String createTime;
    @JsonProperty("name")
    private String name;
    @JsonProperty("updateTime")
    private String updateTime;
    @JsonProperty("id")
    private String id;
    @JsonProperty("difMoney")
    private Integer difMoney;
    @JsonProperty("cardNo")
    private String cardNo;
    @JsonProperty("contacts")
    private List<ContactsDTO> contacts;
    @JsonProperty("isApiAdd")
    private Boolean isApiAdd;

    @NoArgsConstructor
    @Data
    public static class ContactsDTO {
        @JsonProperty("isPrimary")
        private Boolean isPrimary;
        @JsonProperty("name")
        private String name;
        @JsonProperty("id")
        private Long id;
    }
}
